﻿package 
{
	import app.view.components.calendar.CalendarRendererBase;
	import app.view.components.header.SiteHeaderBase;
	import app.view.components.sections.popup.PopupChildrenWinerInterviewMBase;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import app.ApplicationFacade;
	import flash.system.Security;
	
	/**
	 * Флеш сайт для выставки    
	 * firsoff maxim, snzflash.com, tel: +79222345364, skype: maxim.firsoff
	 * @author Dmitryi_Koruagin, icq:585466579, dmitryikoruagin@mail.ru, skype: ok_ru1 
	 */
	public class ExpoMain extends Sprite 
	{
		
		public function ExpoMain():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			Security.allowDomain('*');
			
			// entry point
			 var facade:ApplicationFacade = ApplicationFacade.getInstance();
            facade.startup( this );
			
			// для правильной компиляции
			ExpoCalendarM
			CalendarRendererBase
			//CalendarRenderer
			SiteHeaderBase
			
			//LangsBar
			//Header
			
			
			/*var ev:Event = new Event(Event.OPEN);
			dispatchEvent(ev);
			
			var ev:Event = new Event(Event.CLOSE);
			dispatchEvent(ev);*/
		};
		
	};
	
};
